﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CHPM.IC.ServiceLocator;

namespace CHPM.PL.DesktopUI.Presenters
{
    public class BasePresenter
    {
        protected IServiceLocator _serviceLocator;
        public BasePresenter(IServiceLocator serviceLocator)
        {
            _serviceLocator = serviceLocator;
        }

        public void ClearControls(Control container)
        {
            foreach (Control control in container.Controls)
            {
                if (control.GetType() != typeof(MenuStrip))
                {
                    container.Controls.Remove(control);
                }
            }
        }
    }
}
